<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>导航栏</title>
</head>
<body>
<section id="navbar">
		<nav class="navbar navbar-default navbar-fixed-top">
			<div class="container">
				<div class="navbar-header">
					<button type="button" class="navbar-toggle collapsed"
						data-toggle="collapse" data-target="#bs" aria-expanded="false">
						<span class="sr-only"></span> <span class="icon-bar"></span> <span
							class="icon-bar"></span> <span class="icon-bar"></span>
					</button>
					<a class="navbar-brand" href="#">华为商城</a>
				</div>
				<div class="collapse navbar-collapse" id="bs">
					<ul class="nav navbar-nav navbar-right">
     
					<li><a href="/index">首页</a></li>
					<#if loginuser??>
						<li><a>欢迎你，${(loginuser.userName)!}</a></li>
						<li><a href="/showorder">我的订单</a></li>
						<#else>
						<li><a href="/login">用户登录 </a></li>
						<li><a href="/register">用户注册</a></li>
					</#if>
						<li><a href="/cart/show"><span
								class="glyphicon glyphicon-shopping-cart"></span> 购物车(3)</a></li>
					</ul>
				</div>
			</div>
		</nav>
	</section>
</body>

</html>